package com.bicon.base.data.pojo.botu;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 搜索历史统计表
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
@TableName("search_statistics")
public class SearchStatistics extends Model<SearchStatistics> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 搜索词
     */
    @TableField("search_word")
    private String searchWord;
    /**
     * 结果：搜索结果个数
     */
    @TableField("result_num")
    private Integer resultNum;
    /**
     * 模块类型：商城-mall,医疗-medical（其他待定）
     */
    private String type;
    /**
     * 总搜索次数
     */
    @TableField("sum_search_times")
    private Integer sumSearchTimes;
    /**
     * 本日搜索次数
     */
    @TableField("day_search_times")
    private Integer daySearchTimes;
    /**
     * 本周搜索次数
     */
    @TableField("week_search_times")
    private Integer weekSearchTimes;
    /**
     * 本月搜索次数
     */
    @TableField("month_search_times")
    private Integer monthSearchTimes;
    /**
     * 删除标志：0正常，1删除
     */
    @TableField("logic_delete")
    private String logicDelete;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSearchWord() {
        return searchWord;
    }

    public void setSearchWord(String searchWord) {
        this.searchWord = searchWord;
    }

    public Integer getResultNum() {
        return resultNum;
    }

    public void setResultNum(Integer resultNum) {
        this.resultNum = resultNum;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getSumSearchTimes() {
        return sumSearchTimes;
    }

    public void setSumSearchTimes(Integer sumSearchTimes) {
        this.sumSearchTimes = sumSearchTimes;
    }

    public Integer getDaySearchTimes() {
        return daySearchTimes;
    }

    public void setDaySearchTimes(Integer daySearchTimes) {
        this.daySearchTimes = daySearchTimes;
    }

    public Integer getWeekSearchTimes() {
        return weekSearchTimes;
    }

    public void setWeekSearchTimes(Integer weekSearchTimes) {
        this.weekSearchTimes = weekSearchTimes;
    }

    public Integer getMonthSearchTimes() {
        return monthSearchTimes;
    }

    public void setMonthSearchTimes(Integer monthSearchTimes) {
        this.monthSearchTimes = monthSearchTimes;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    protected Serializable pkVal() {
        return null;
    }

    @Override
    public String toString() {
        return "SearchStatistics{" +
        "id=" + id +
        ", searchWord=" + searchWord +
        ", resultNum=" + resultNum +
        ", type=" + type +
        ", sumSearchTimes=" + sumSearchTimes +
        ", daySearchTimes=" + daySearchTimes +
        ", weekSearchTimes=" + weekSearchTimes +
        ", monthSearchTimes=" + monthSearchTimes +
        ", logicDelete=" + logicDelete +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        "}";
    }
}
